import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/process/` + url, ...arg)

export default {
	async getById(data) {
		return await request('get_by_id', data, 'post')
	},
	async queryLogLevelList(data) {
		return await request('log_level_list', data, 'post')
	},
	async removeById(data) {
		return await request('remove_by_id', data, 'post')
	},
	async save(data) {
		return await request('save', data, 'post')
	},
	async queryProcessList(data) {
		return await request('list', data, 'post')
	},
	async queryRowSetList(data) {
		return await request('row_set_list', data, 'post')
	},

	async queryFieldTypeList() {
		return await request('field_type_list', {}, 'post')
	},
	async queryFuncList() {
		return await request('func_list', {}, 'post')
	},
}

